<template>
  <div class="status-container">
    <span class="status-label">{{ label }}：</span>
    <dict-tag :options="statusOptions" :value="statusValue || ''" class="status-tag" />
  </div>
</template>

<script setup lang="ts">
// 定义组件属性
const props = withDefaults(
  defineProps<{
    // 状态标签文本
    label?: string;
    // 状态选项数据
    statusOptions?: any[];
    // 当前状态值
    statusValue?: string | number;
  }>(),
  {
    label: '审核状态',
    statusOptions: () => [],
    statusValue: ''
  }
);
</script>

<style scoped>
/* 审核状态容器样式 */
.status-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f8faff 0%, #f0f7ff 100%);
  border: 1px solid #e1ecff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(64, 158, 255, 0.08);
  min-width: 160px;
  transition: all 0.2s ease;
}

.status-container:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.12);
}

.status-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--el-text-color-regular);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-tag {
  font-weight: 500;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .status-container {
    padding: 6px 12px;
    justify-content: center;
  }

  .status-label {
    font-size: 13px;
  }

  .status-tag {
    font-size: 13px;
    padding: 4px 8px;
  }
}
</style>
